// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
// element 导入
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css'
// 调用插件
Vue.use(ElementUI);
Vue.config.productionTip = false
// 加载项目的自定义配置文件
import settings from "./settings";
// 把全局配置设置一个属性
Vue.prototype.$settings = settings;


// 加载Ajax组件
import axios from "axios";  // 从node_modules目录中导入包
// 允许Ajax发送请求时附带cookie
axios.defaults.withCredentials = true;

Vue.prototype.$axios = axios;  // 把对象挂在vue中

/* eslint-disable no-new */
new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
